﻿
var picProClass = {};
picProClass.NameControl = null;
picProClass.IdControl = null;
picProClass.type = null;
$(function () {
    $("#tbPicProClass").datagrid({        
        url: '/Logic/BD/DepartmentPositionAjax.aspx?method=GetProClass&type=' + picProClass.type,
        loadMsg: '数据加载中请稍候……',
        pagination: true,
        rownumbers: true,
        idField: "ID",
        fitColumns: true,
        columns: [[
            {
                field: 'ck', checkbox: true, width: 30
            },

                    {
                        field: 'DepName', title: '班组名称', sortable: true, width: 100, align: "center"
                    }, {
                        field: 'InOrOutside', title: '班组类别', sortable: true, width: 100, align: "center", formatter: function (value, row, index) {

                            return com.getArrayText(StaticCombo.InOrOutside, value);
                        }
                    }


        ]],
        singleSelect: true,
        pageSize: 8,
        pageList: [8, 10],
        striped: true
    });
    $.extend(com.dialogObj, { title: "选择班组", width: 470, height: 375 });
    $("#pickProClass").dialog(
            com.dialogObj
         );

    $("#pickProClass").dialog("close");
});


picProClass.Cancel = function () {
    $("#pickProClass").dialog("close");
}


picProClass.open = function (target) {
    //console.log(111);
    //console.log(picProClass.type);

    $("#pickProClass").dialog("open");
}